package com.company.controller;

import com.company.facade.RpcSampleFacade;
import com.company.request.SampleOneRequest;
import com.company.response.SampleOneResponse;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import lombok.extern.slf4j.Slf4j;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.ResponseBody;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestParam;


/**
  * rest方式发布服务
  *
  * @author poc
  * @version : AccountSplitModel.java, v 0.1 2023年12月15日 16:11:891 poc Exp $
  */

@RestController
@RequestMapping("/sample/rest")
@Slf4j
public class RpcSampleFacadeOneController implements RpcSampleFacade {
    /**
     * LOGGER
     */
    private final static Logger LOGGER = LoggerFactory.getLogger(RpcSampleFacadeOneController.class);

    /**
     * openAccount
     *
     * @param request request
     * @return response
     */
    @ResponseBody
    @RequestMapping(value="/sampleTest",method = RequestMethod.GET, consumes = "application/json")
    public SampleOneResponse openAccount(@RequestBody SampleOneRequest request) {

        SampleOneResponse response = new SampleOneResponse();

        return response;
    }
}
